home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1997 / HAM Radio 1997.iso / vcls / moden / examples / exlog0.pas < prev    next >
Pascal/Delphi Source File  |  1996-04-08  |  840b  |  43 lines

  1. unit Exlog0;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, ExtCtrls, AdTerm, AdPort;
  8.  
  9. type
  10.   TExampleLog = class(TForm)
  11.     ApdComPort1: TApdComPort;
  12.     ApdTerminal1: TApdTerminal;
  13.     LogOps: TRadioGroup;
  14.     Quit: TButton;
  15.     procedure QuitClick(Sender: TObject);
  16.     procedure LogOpsClick(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. var
  24.   ExampleLog: TExampleLog;
  25.  
  26. implementation
  27.  
  28. {$R *.DFM}
  29.  
  30. procedure TExampleLog.QuitClick(Sender: TObject);
  31. begin
  32.   Close;
  33. end;
  34.  
  35. procedure TExampleLog.LogOpsClick(Sender: TObject);
  36. begin
  37.   ApdComPort1.Logging := TTraceLogState(LogOps.ItemIndex);
  38.   LogOps.ItemIndex := Ord(ApdComPort1.Logging);
  39.   ApdTerminal1.SetFocus;
  40. end;
  41.  
  42. end.
  43.